<template>
	<div>
		<h1 @click="say">App...</h1>
		<!--
			给组件绑定的事件都是自定义事件，触发子组件内部触发了，否则不会触发
				.native事件修饰符，给组件绑定原生DOM事件
		-->
		<Child @click.native="say" />
	</div>
</template>

<script>
import Child from "./Child.vue";

export default {
	name: "App",
	components: {
		Child,
	},
	methods: {
		say() {
			console.log("hello");
		},
	},
};
</script>

<style></style>
